package cn.alcatraz.basic.constant;

public class BaseConstant {
    //邮箱发送图片IP前缀
    public static final String FAST_DFS_IP = "123.207.27.208";
    //邮件发送人
    public static final String EMAIL_FROM = "609150367@qq.com";


    // 短信平台的常量类
    public class SmsConstant {
        public static final String SMS_UID = "Alcatraz";

        public static final String SMS_KEY = "";
    }


    // 注册相关的常量类
    public static class VerifyCodeConstant {

        // 注册时的手机验证码常量
        public static final String BUSINESS_REGISTER_KEY = "register:";

        // 登录时的手机验证码常量
        public static final String BUSINESS_LOGIN_KEY = "login:";

        public static final String BUSINESS_BINDER_KEY = "binder:";

        public static final Long GET_SMS_OVERTIME = 1*60*1000L;

    }
    //微信登录相关常量
    public static class WechatConstant{

        // 获取access_token的URL地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";


    }
}
